﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageNguoiDung.Master" AutoEventWireup="true" CodeBehind="TimKiem.aspx.cs" Inherits="DoAn.TimKiem" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxScheduler.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxScheduler" tagprefix="dxwschs" %>
<%@ Register assembly="DevExpress.XtraScheduler.v11.1.Core, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.XtraScheduler" tagprefix="cc1" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTimer" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxScheduler.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxScheduler.Controls" tagprefix="dxwschsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 800px;
            margin:auto;
        }
        .style2
        {
            width: 100%;
        }
        .style3
        {
            width: 149px;
        }
        .style6
        {
            width: 51px;
        }
        .style14
        {
            width: 231px;
        }
        .style15
        {
            width: 149px;
            max-height: 13px;
        }
        .style16
        {
            width: 231px;
            max-height: 13px;
        }
        .style17
        {
            width: 51px;
            max-height: 13px;
        }
        .style18
        {
            max-height: 13px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td>
                <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
                    CssFilePath="~/App_Themes/RedWine/{0}/styles.css" CssPostfix="RedWine" 
                    GroupBoxCaptionOffsetY="0px" 
                    SpriteCssFilePath="~/App_Themes/RedWine/{0}/sprite.css" Width="800px">
                    <ContentPaddings Padding="0px" />
                    <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <table class="style2">
        <tr>
            <td class="style3">
                Tên sản phẩm:</td>
            <td class="style14">
                <asp:TextBox ID="txttensp" runat="server" Width="164px"></asp:TextBox>
            </td>
            <td class="style6">
                Loại</td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" 
                    OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" Width="149px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Giá khỏi điểm</td>
            <td class="style14">
                <dx:ASPxSpinEdit ID="txtgiakhoidiem_tu" runat="server" 
                    CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                    Height="21px" Number="0" 
                    SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                    <SpinButtons>
                        <IncrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                        </IncrementImage>
                        <DecrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                        </DecrementImage>
                        <LargeIncrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeIncImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditLargeIncImagePressed_Aqua" />
                        </LargeIncrementImage>
                        <LargeDecrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeDecImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditLargeDecImagePressed_Aqua" />
                        </LargeDecrementImage>
                    </SpinButtons>
                    <Paddings Padding="0px" PaddingBottom="0px" PaddingLeft="0px" 
                        PaddingRight="0px" PaddingTop="0px" />
                </dx:ASPxSpinEdit>
                <br />
            </td>
            <td class="style6">
                Đến:</td>
            <td>
                <dx:ASPxSpinEdit ID="txtgiakhoidiem_den" runat="server" CssPostfix="Aqua" 
                    Height="21px" Number="0" 
                    SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" 
                    Increment="100" CssFilePath="~/App_Themes/Aqua/{0}/styles.css" 
                    Width="170px">
                    <SpinButtons>
                        <IncrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                        </IncrementImage>
                        <DecrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                        </DecrementImage>
                        <LargeIncrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeIncImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditLargeIncImagePressed_Aqua" />
                        </LargeIncrementImage>
                        <LargeDecrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeDecImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditLargeDecImagePressed_Aqua" />
                        </LargeDecrementImage>
                    </SpinButtons>
                </dx:ASPxSpinEdit>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Giá cao nhất hiện thời</td>
            <td class="style14">
                <dx:ASPxSpinEdit ID="txtgiahienthoi_tu" runat="server" 
                    CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                    Height="8px" 
                    SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" Number="0">
                    <SpinButtons>
                        <IncrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                        </IncrementImage>
                        <DecrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                        </DecrementImage>
                        <LargeIncrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeIncImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditLargeIncImagePressed_Aqua" />
                        </LargeIncrementImage>
                        <LargeDecrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeDecImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditLargeDecImagePressed_Aqua" />
                        </LargeDecrementImage>
                    </SpinButtons>
                </dx:ASPxSpinEdit>
                <br />
            </td>
            <td class="style6">
                Đến</td>
            <td>
                <dx:ASPxSpinEdit ID="txtgiahienthoi_den" runat="server" 
                    CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                    Height="21px" Number="0" 
                    SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" LargeIncrement="0">
                    <SpinButtons>
                        <IncrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                        </IncrementImage>
                        <DecrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                        </DecrementImage>
                        <LargeIncrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeIncImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditLargeIncImagePressed_Aqua" />
                        </LargeIncrementImage>
                        <LargeDecrementImage>
                            <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeDecImageHover_Aqua" 
                                PressedCssClass="dxEditors_edtSpinEditLargeDecImagePressed_Aqua" />
                        </LargeDecrementImage>
                    </SpinButtons>
                </dx:ASPxSpinEdit>
            </td>
        </tr>
        <tr>
            <td class="style15">
                Ngày kết thúc đấu giá</td>
            <td class="style16">
                <dx:ASPxDateEdit ID="txtngayketthuc_tu" runat="server">
                </dx:ASPxDateEdit>
            </td>
            <td class="style17">
                Đến</td>
            <td class="style18">
                <dx:ASPxDateEdit ID="txtngayketthuc_den" runat="server">
                </dx:ASPxDateEdit>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style14">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style14">
                <asp:Button ID="Button1" runat="server" Text="Tìm" Width="94px" 
                    OnClick="Button1_Click" />
            </td>
            <td class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style14">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style14">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
                        </dx:PanelContent>
</PanelCollection>
                </dx:ASPxRoundPanel>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" 
                    CssFilePath="~/App_Themes/RedWine/{0}/styles.css" CssPostfix="RedWine" 
                    GroupBoxCaptionOffsetY="-28px" 
                    SpriteCssFilePath="~/App_Themes/RedWine/{0}/sprite.css" Width="800px">
                    <ContentPaddings Padding="0px" />
                    <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <asp:DataList ID="DataList1" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        GridLines="Both" HorizontalAlign="Left" RepeatColumns="2" Width="800px">
        <EditItemStyle BorderStyle="Dotted" />
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <ItemStyle ForeColor="#000066" />
        <ItemTemplate>
            <br />
            <table cellpadding="5" cellspacing="5" class="style3">
                <tr>
                    <td>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <dx:ASPxHyperLink ID="ASPxHyperLink1" runat="server" 
                            ImageUrl='<%# Eval("HinhAnh") %>' ImageWidth="200px" 
                            NavigateUrl='<%# "ChiTietSanPham.aspx?masan="+Eval("MaSan") %>' 
                            Text="ASPxHyperLink" Width="200px" />
                        <br />
                        &nbsp;&nbsp; Tên:<asp:HyperLink ID="HyperLink2" runat="server" 
                            NavigateUrl='<%# "ChiTietSanPham.aspx?masan="+Eval("MaSan") %>' 
                            Text='<%# Eval("TenSan") %>'></asp:HyperLink>
                        <br />
                        &nbsp;&nbsp; Người bán:<asp:Label ID="Label2" runat="server" 
                            Text='<%# Eval("TenTaiKhoan") %>'></asp:Label>
                        <br />
                        &nbsp;&nbsp; Giá hiện thời:<asp:Label ID="Label3" runat="server" ForeColor="Red" 
                            Text='<%# String.Format("{0:0,0}vnd", Eval("GiaSanHienTai")) %>'></asp:Label>
                        <br />
                        &nbsp;&nbsp; Số lượng khách hàng:<asp:Label ID="Label4" runat="server" 
                            Text='<%# Eval("SoNguoiRaGia") %>'></asp:Label>
                        <br />
                        &nbsp;&nbsp; Dự kiến kết thúc:<asp:Label ID="Label5" runat="server" 
                            Text='<%# Eval("NgayKetThucSan") %>'></asp:Label>
                        <br />
                        &nbsp;&nbsp;&nbsp;
                        <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("muanhanh") %>'></asp:HyperLink>
                        <br />
                        &nbsp; Mô tả:<asp:Label ID="Label6" runat="server" Text='<%# Eval("MoTa") %>'></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
                        </dx:PanelContent>
</PanelCollection>
                </dx:ASPxRoundPanel>
            </td>
        </tr>
    </table>
</asp:Content>
